package com.leoman.work.service;

import com.leoman.common.service.GenericManager;
import com.leoman.work.entity.WorkComic;
import com.leoman.work.entity.WorkNovel;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by 蔡琦 on 2016/6/21 0021.
 *
 */
public interface WorkComicService extends GenericManager<WorkComic>{

    // 根据漫画id查询对应的漫画话集
    List<WorkComic> findByWorkId(Long workId);

    // 漫画话集列表（分页）
    Page<WorkComic> page(Long workId, Integer pageNum, Integer pageSize);

    // 删除漫画话集
    Integer deleteComic(Long comicId);

    WorkComic findOneById(Long id);
}
